import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'

import add_news from '@/components/add_news'
import detail from '@/components/detail'
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },{
      path: '/add_news',
      name: 'add_news',
      component: add_news
    },{
      path: '/detail',
      name: 'detail',
      component: detail
    }
  ]
})
